package com.example.gulimall.auth.feign;

import com.example.common.entity.member.MemberEntity;
import com.example.common.utils.R;
import com.example.common.vo.UserLoginVo;
import com.example.common.vo.UserRegisterVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * <p>
 *
 * </p>
 *
 * @author zyred
 * @since v 0.1
 **/
@FeignClient("gulimall-member")
public interface MemberFeignService {

    @PostMapping("/member/member/register")
    R register(@RequestBody UserRegisterVo vo);

    @PostMapping("/member/member/login")
    R login(@RequestBody UserLoginVo vo);

    @PostMapping("/member/member/isRegister")
    MemberEntity isRegister(@RequestBody MemberEntity userInfo);
}
